//**********************************************************************************
//Age.java
//
//Name: Gabriel Martins	de	Castro
//Class:	COMSC	110L.51
//Date: 09/29/2014
//Instructor: Dr.	Chunyan Bai
//
//Purpose: Demonstrate basic if statement in java
//***********************************************************************************
import java.util.Scanner;
//Class
public class Age
{
	public static void main(String[]	args)//main	method
	{
      //declare a constant called MINOR and assign value of 21
      final int MINOR = 21;
      //prompt the user for his/her current age
      
      System.out.println("Please enter your current age : ");
      Scanner input = new Scanner(System.in);
      int age = input.nextInt();
      
      //if statement - check your current age and decide wheter you can drink or not
      
      if(age >= MINOR)
         System.out.println("Nice, you can drink!");
      else
         System.out.println("Oww, you can't drink yet!");
   }
}